/**
 * @file sch-ui
 * @author its-wild(https://gitee.com/its-wild)
 * @date 2021/06/04
 */
// 版本号
import { version } from './lerna.json'
import { SchButton } from './packages/button'
import { SchForm } from './packages/form'
import { SchFormItem } from './packages/formitem'
import { SchInput } from './packages/input'
import { SchLink } from './packages/link'
import { SchSteps } from './packages/steps'

// 批量注册
function install(app) {
    let components = [
        SchButton,
        SchForm,
        SchFormItem,
        SchInput,
        SchLink,
        SchSteps,
    ];
    components.forEach(item => {
        if (item.install) {
            app.use(item);
        } else if (item.name) {
            app.component(item.name, item);
        }
    });
}

export default { install, version }
export * from './packages/button'
export * from './packages/form'
export * from './packages/formitem'
export * from './packages/input'
export * from './packages/link'
export * from './packages/steps'

